package sctu.edu.java.year2016.team03.zhaoyong.day20160529;

/**
 * Created by zhaoyong on 2016/5/29.
 */
public class Outer {
    private int a = 99;
    public class Inner{
        int b=2;
        public void test(){
            System.out.println("访问外部类中的a:"+a);
            System.out.println("访问内部类中的b:"+b);
        }
    }
    public static void main(String[] args){
        Outer o=new Outer();
        Inner i=o.new Inner();
        i.test();
    }
}
